# Huawei Technologies Co.,Ltd.

cmake_minimum_required(VERSION 3.10)

project(jsnapi_tests)

set(JSNAPI_TESTS_SOURCES
    jsnapi_tests.cpp
)

panda_ecmascript_add_gtest(
    NO_CORES
    NAME jsnapi_tests
    SOURCES
    ${JSNAPI_TESTS_SOURCES}
    LIBRARIES
        arkruntime
    INCLUDE_DIRS
        ${PANDA_ECMASCRIPT_PLUGIN_SOURCE}/tests/runtime/common
    SANITIZERS
        ${PANDA_SANITIZERS_LIST}
)
if(TARGET jsnapi_tests)
    panda_target_include_directories(jsnapi_tests
        PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}
    )
    panda_target_compile_options(jsnapi_tests PUBLIC "-Wno-ignored-attributes")
endif()
